package com.demo.flight.entity;

import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * @author ssy
 * @create 2022-03-24 10:58
 */

@Component
@Data
public class Administrator {
    private String account;
    private String password;
    
    @Override
    public boolean equals(Object o) {
        if (o == null) {
            return false;
        }
        Administrator other = (Administrator) o;
        return account != null && password != null && account.equals(other.getAccount()) && password.equals(other.getPassword());
    }
}
